#ifndef MYPACKETMODEL_H
#define MYPACKETMODEL_H

#include "mainwindow.h"

class MyPacketModel : public QAbstractTableModel
{
    Q_OBJECT
public:
    MyPacketModel(QList<MyPacket*> *packList, QObject *parent = 0);
    QVariant data(const QModelIndex &index, int role) const;
    QVariant headerData(int section, Qt::Orientation orientation,int role) const;
    int rowCount(const QModelIndex &parent) const;
    int columnCount(const QModelIndex &parent) const;

    void Update();

    QList<MyPacket*> *packetList;
};

#endif // MYPACKETMODEL_H
